package com.jy.datapipeline.export.service;

import com.jy.datapipeline.export.entity.DataSourceInfoModel;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

public interface DataSourceInfoService {
    public boolean saveDataSourceInfo(DataSourceInfoModel dsim);

    public boolean updateDataSourceInfo(DataSourceInfoModel dsim);

    public boolean deleteDataSourceInfoById(int id);

    public List<Map<String,Object>> findDataSourceInfoByList(String dataSourceName,int iDisplayStart,int iDisplayLength);

    public int findDataSourceInfoByCount(String dataSourceName);

    public DataSourceInfoModel findByDataSourceName(String dataSourceName);

    public DataSourceInfoModel findByDataSourceId(String dataSourceId);

    public List<DataSourceInfoModel> findAll();

    public DataSourceInfoModel findById(int id);

    Map<String, Object> findTables(String dataSourceId, String schema, String tblName, int searchType, int startIndex, Integer endIndex, Map<String, Object> map) throws SQLException;
}
